package com.example.park2301.user

import androidx.lifecycle.MutableLiveData
import androidx.media3.exoplayer.source.MediaLoadData
import com.example.lib_base.entity.UserBean
import com.example.lib_base.mvvm.BaseViewModel
import com.example.lib_base.net.ApiService
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

@HiltViewModel
class UserVIewModel @Inject constructor(val  apiService: ApiService):BaseViewModel(){
    val loginData =MutableLiveData<UserBean>()
    fun login(username:String,password:String){
        httpRequest({apiService.login(username,password)},loginData::postValue)
    }
}